const plugins = process.env.NODE_ENV.startsWith('production')
	? [
			[
				'import',
				{
					libraryName: 'ant-design-vue',
					libraryDirectory: 'es',
					style: true,
				},
			],
	  ]
	: []

module.exports = {
	presets: ['@vue/cli-plugin-babel/preset'],
	plugins,
}
